const area = [
	{
		value: '芜湖',
		descName: '芜湖'
	},
	{
		value: '安庆',
		descName: '安庆'
	},
	{
		value: '蚌埠',
		descName: '蚌埠'
	},
	{
		value: '亳州',
		descName: '亳州'
	},
	{
		value: '池州',
		descName: '池州'
	},
	{
		value: '滁州',
		descName: '滁州'
	},
	{
		value: '阜阳',
		descName: '阜阳'
	},
	{
		value: '合肥',
		descName: '合肥'
	},
	{
		value: '淮北',
		descName: '淮北'
	},
	{
		value: '淮南',
		descName: '淮南'
	},
	{
		value: '黄山',
		descName: '黄山'
	},
	{
		value: '六安',
		descName: '六安'
	},
	{
		value: '马鞍山',
		descName: '马鞍山'
	},
	{
		value: '铜陵',
		descName: '铜陵'
	},
	{
		value: '宿州',
		descName: '宿州'
	},
	{
		value: '宣城',
		descName: '宣城'
	}

];
const alertTpye = [
	{
		value: 'ZFZ',
		descName: 'ZFZ'
	},
	{
		value: '5G',
		descName: '5G'
	},
	{
		value: 'LTE',
		descName: 'LTE'
	},
	{
		value: 'Unknown',
		descName: 'Unknown'
	},
	{
		value: 'CDMA',
		descName: 'CDMA'
	}
];
const netStatus = [{
	value: '5G',
	descName: '5G'
}, {
	value: 'L网',
	descName: 'L网'
}, {
	value: 'C网',
	descName: 'C网'
}]

const netCricleStatus = [{
	value: 'C网基站',
	descName: 'C网基站'
}, {
	value: 'L网小区',
	descName: 'L网小区'
}, {
	value: 'L网RRU',
	descName: 'L网RRU'
}, {
	value: '5G-AUU',
	descName: '5G-AUU'
}, {
	value: '5G-BBU',
	descName: '5G-BBU'
}, {
	value: 'L网BBU',
	descName: 'L网BBU'
}]

const siteType = [{
	value: '室外站',
	descName: '室外站'
}, {
	value: '室外微站',
	descName: '室外微站'
}, {

	value: '室外皮站',
	descName: '室外皮站'
}, {
	value: '室分',
	descName: '室分'
}, {
	value: 'BBU池',
	descName: 'BBU池'
}, {
	value: 'BBU池',
	descName: 'BBU池+室外站'
}, {
	value: 'BBU池',
	descName: 'BBU池+室分'
}, {
	value: 'BBU池',
	descName: '室外站+室分'
}, {
	value: 'BBU池',
	descName: '室外站+室分+BBU池'
}]

const auit = [{
	value: '已失效',
	descName: '已失效'
}, {
	value: '已生效',
	descName: '已生效'
}, {
	value: '审核通过',
	descName: '审核通过'
}, {
	value: '审批不通过',
	descName: '审批不通过'
}, {
	value: '待审批',
	descName: '待审批'
}]


const shortcuts = [{
		text: '昨日',
		onClick(picker) {
			const end = new Date();
			const start = new Date();
			end.setTime(start.getTime() - 3600 * 1000 * 24 * 1);
			start.setTime(start.getTime() - 3600 * 1000 * 24 * 1);
			console.log(start)
			picker.$emit('pick', [start, end]);
		}
	}, {
		text: '上周',
		onClick(picker) {
			let now = new Date();
			let nowTime = now.getTime(); // 当前的时间戳
			let weekDay = now.getDay(); // 当前星期
			let oneDayTime = 24 * 3600 * 1000; // 一天的总毫秒数
			let start = nowTime - (weekDay + 6) * oneDayTime; // 上周一的时间戳
			let end = nowTime - (weekDay + 0) * oneDayTime; // 上周日的时间戳
			picker.$emit('pick', [new Date(start), new Date(end)]);
		}
	}, {
		text: '上月',
		onClick(picker) {
			let now = new Date();
			let nowYear = now.getFullYear(); // 当前年
			let lastMonth = now.getMonth(); // 上一个月
			let start = new Date(nowYear, lastMonth - 1, 1); // 上一个月的第一天日期
			let end = new Date(nowYear, lastMonth, 0); // 上一月的最后一天日期
			picker.$emit('pick', [new Date(start), new Date(end)]);
		},

	},
	{
		text: (new Date().getFullYear()-1) + "第四季度",
		onClick(picker) {
			const start = new Date((new Date().getFullYear()-1) , 9, 1);
			const end = new Date((new Date().getFullYear()-1) , 11, 31);
			picker.$emit("pick", [start, end]);
		},
	},
	{
		text: new Date().getFullYear() + "第一季度",
		onClick(picker) {
			const start = new Date(new Date().getFullYear(), 0, 1);
			const end = new Date(new Date().getFullYear(), 2, 31);
			picker.$emit("pick", [start, end]);
		},
	},
	{
		text: new Date().getFullYear() + "第二季度",
		onClick(picker) {
			const start = new Date(new Date().getFullYear(), 3, 1);
			const end = new Date(new Date().getFullYear(), 5, 30);
			picker.$emit("pick", [start, end]);
		},
	},
	{
		text: new Date().getFullYear() + "第三季度",
		onClick(picker) {
			const start = new Date(new Date().getFullYear(), 6, 1);
			const end = new Date(new Date().getFullYear(), 8, 30);
			picker.$emit("pick", [start, end]);
		},
	},
	{
		text: new Date().getFullYear() + "第四季度",
		onClick(picker) {
			const start = new Date(new Date().getFullYear(), 9, 1);
			const end = new Date(new Date().getFullYear(), 11, 31);
			picker.$emit("pick", [start, end]);
		},
	},

]
const company = [{
		value: '阿朗',
		descName: '阿朗'
	},
	{
		value: '华为',
		descName: '华为'
	},
	{
		value: '中兴',
		descName: '中兴'
	},
	{
		value: '诺基亚',
		descName: '诺基亚'
	},
	{
		value: '直放站',
		descName: '直放站'
	}
]

const net = [{
	value: '4G',
	descName: '4G'
}, {
	value: '5G',
	descName: '5G'
}]


const model = [{
	value: '4G',
	descName: '4G'
},{
	value: '5G',
	descName: '5G'
}, {
	value: 'LTLTE',
	descName: '联通4G'
},
 {
	value: 'DH',
	descName: '自建站动环'
},
 {
	value: 'POW',
	descName: '铁塔动环'
},
]

const grade = [{
	value: 'A',
	descName: 'A'
}, {
	value: 'B',
	descName: 'B'
}, {
	value: 'C',
	descName: 'C'
}, {
	value: 'D',
	descName: 'D'
}, {
	value: 'S',
	descName: 'S'
}]

const appPermission = [{
	value: '天馈巡检',
	descName: '天馈巡检'
}, {
	value: '室分巡检',
	descName: '室分巡检'
}, {
	value: '站址巡检',
	descName: '站址巡检'
},
// {
// 	value: '审核巡检结果',
// 	descName: '审核巡检结果'
// }, {
// 	value: '查看巡检结果',
// 	descName: '查看巡检结果'
// },
]

const haveCompany = [{
	value: '博浩',
	descName: '博浩'
},{
	value: '安通服',
	descName: '安通服'
}, {
	value: '中邮建',
	descName: '中邮建'
}, {
	value: '中徽建',
	descName: '中徽建'
}, {
	value: '中通建一局',
	descName: '中通建一局'
}, {
	value: '南京欣网',
	descName: '南京欣网'
}, {
	value: '市无线',
	descName: '市无线'
}, {
	value: '县公司',
	descName: '县公司'
}, {
	value: '省网优',
	descName: '省网优'
}]

const ocName = [{
	value: '华为5G',
	descName: '华为5G'
}, {
	value: '华为LTE',
	descName: '华为LTE'
}, {
	value: '中兴5G',
	descName: '中兴5G'
}, {
	value: '中兴LTE',
	descName: '中兴LTE'
}, {
	value: '中兴C网',
	descName: '中兴C网'
}, {
	value: '阿朗',
	descName: '阿朗'
}, {
	value: '诺基亚',
	descName: '诺基亚'
}]

export default {
	grade,
	area,
	alertTpye,
	company,
	shortcuts,
	net,
	model,
	netStatus,
	netCricleStatus,
	siteType,
	auit,
	appPermission,
	haveCompany,
	ocName
}
